﻿using System;
using System.IO;

public class USAssetModificationProcessor : AssetModificationProcessor
{
    private static void OnWillSaveAssets(string[] paths)
    {
        foreach (string str in paths)
        {
            if (Path.GetExtension(str) == ".unity")
            {
                USControl.StopProcessingAnimationMode();
                EditorEventObjectMap.Clean();
                EditorTimelineObjectMap.Clean();
                USControlTimelines.Clean();
            }
        }
    }
}

